/**
 * 
 */
package metalink.admin;

import model.admin.HostelMo;

import com.opensymphony.xwork2.ActionSupport;

/**
 * @author Sony
 *
 */
public class DeleteRoom extends ActionSupport{
	int[] room_id;
	int[] residential_id1;
	int residential_id;
	public String execute() {
		HostelMo mo = new HostelMo();
		setResidential_id(residential_id1[0]);
		try {
			for (int single_room_id : room_id) {
			mo.deleteRoom(single_room_id);
			}
			
		} catch (Exception e) {
			addActionError(e.getMessage());
		}
		return SUCCESS;
	}
	
	public int getResidential_id() {
		return residential_id;
	}

	public void setResidential_id(int residential_id) {
		this.residential_id = residential_id;
	}

	public int[] getRoom_id() {
		return room_id;
	}
	public void setRoom_id(int[] room_id) {
		this.room_id = room_id;
	}
	public int[] getResidential_id1() {
		return residential_id1;
	}
	public void setResidential_id1(int[] residential_id1) {
		this.residential_id1 = residential_id1;
	}
	
}
